<?php
/*
	f confi.inc.	a corrie.	v 0.5
	config file for project
*/

$config['db']['default'] = array(
	'engine' => 'mysql'
	,'host' => 'localhost'
	,'username' => 'root'
	,'password' => '321'
	,'database' => 'test'
	,'charset' => 'utf8'
	,'tablepre' => 'n_'
);


$config['path'] = array(
	'controller' => APP_ROOT . 'm' . DIR_SEP . 'controller' . DIR_SEP
	,'template' => APP_ROOT . 'm' . DIR_SEP . 'template' . DIR_SEP
	,'model' => APP_ROOT . 'm' . DIR_SEP . 'model' . DIR_SEP
	,'config' => APP_ROOT . 'i' . DIR_SEP . 'conf' . DIR_SEP
	,'include' => APP_ROOT . 'i' . DIR_SEP . 'inc' . DIR_SEP
	,'library' => APP_ROOT . 'i' . DIR_SEP . 'lib' . DIR_SEP
	,'cache' => APP_ROOT . 'i' . DIR_SEP . 'lib' . DIR_SEP
);

$config['cache_dir'] = APP_ROOT . 'd' . DIR_SEP . 'cache' . DIR_SEP . 'data' . DIR_SEP;
$config['model_dir'] = APP_ROOT . 'm' . DIR_SEP . 'model' . DIR_SEP;
$config['controller_dir'] =  APP_ROOT . 'm' . DIR_SEP . 'controller' . DIR_SEP;
$config['template_dir'] =  APP_ROOT . 'm' . DIR_SEP . 'template' . DIR_SEP;

$config['smarty'] = array(
	'compile_dir' => APP_ROOT . 'd'.DIR_SEP.'smarty'.DIR_SEP.'template_c'.DIR_SEP
	,'cache_dir' => APP_ROOT . 'd'.DIR_SEP.'smarty'.DIR_SEP.'cache'.DIR_SEP
	,'left_delimiter' => '{?'
	,'right_delimiter' => '?}'
	,'caching' => false
	,'force_compile' => false
	,'template_dir' => APP_ROOT . 'm'.DIR_SEP.'template'.DIR_SEP
	,'default' => 'default'
);

$config['cookie'] = array(
	'pre' => ''
	,'domain' => ''
	,'path' => '/' 
);

//route config
define('ROUTE_ON', TRUE);
$route = array();
$route['/'] = 'index/index'; 
$route['*']['/uri_([a-z]+)'] = 'index/index:type'; 
$route['*']['/captcha'] = 'image/captcha'; 
?>